package com.gengzp.rpc.model.remoteTransaction.dto;

import java.io.Serial;
import java.io.Serializable;

/**
 * @ClassName RemoteTransactionDto
 * @Description 远程事务信息实体类
 * @Author gengzp
 * @Date 2025/8/25 13:49
 */
public class RemoteTransactionDto implements Serializable {

    @Serial
    private static final long serialVersionUID = -367482095830543721L;

    /**
     * 服务名
     */
    private String serviceName;

    /**
     * 接口名
     */
    private String interfaceName;

    /**
     * 方法名
     */
    private String methodName;

    /**
     * 参数列表
     */
    private Object[] args;

    /**
     * 参数类型列表
     */
    private Class<?>[] parameterTypes;

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public String getInterfaceName() {
        return interfaceName;
    }

    public void setInterfaceName(String interfaceName) {
        this.interfaceName = interfaceName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }

    public Class<?>[] getParameterTypes() {
        return parameterTypes;
    }

    public void setParameterTypes(Class<?>[] parameterTypes) {
        this.parameterTypes = parameterTypes;
    }

}
